<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ContactDetail.aspx.cs" Inherits="DBAContactDetail" Title="" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table id="TableHeader" cellpadding="5" cellspacing="0" width="100%">
            <tr>
                <td bgcolor="#EBE7E7" colspan="2" style="height: 24px">
                        <table style="width: 100%">
                            <tr>
                                <td>Contact Detail</td>
                                <td align=right>
                                    <asp:LinkButton ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" 
                                        ForeColor="Green">Update</asp:LinkButton>
                                    &nbsp;
                                    |&nbsp;
                                    <asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_Click" 
                                        ForeColor="Red">Delete</asp:LinkButton></td>
                            </tr>
                        </table></td>
            </tr>
    </table>
    <table id="Table1" cellpadding="0" cellspacing="1" width="100%">
            <tr>
                <td colspan="2">
                    <table id="Table2" cellpadding="3" width="100%">
                        <tr>
                            <td bgcolor="#EBE7E7" style="width: 151px">
                                DBA Name:</td>
                            <td>
                                <asp:TextBox ID="txtDBAContactName" runat="server" Width="267px"></asp:TextBox></td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td bgcolor="#EBE7E7" style="width: 151px">
                                Office Phone:</td>
                            <td colspan="1">
                                <asp:TextBox ID="txtDBAOfficePhone" runat="server" Width="267px"></asp:TextBox></td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td bgcolor="#EBE7E7" style="width: 151px" valign="top">
                                Mobile Phone:</td>
                            <td colspan="1">
                                <asp:TextBox ID="txtDBAMobilePhone" runat="server" Width="267px"></asp:TextBox></td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td bgcolor="#EBE7E7" style="width: 151px" valign="top">
                                Home Phone:</td>
                            <td colspan="1">
                                <asp:TextBox ID="txtDBAHomePhone" runat="server" Width="267px"></asp:TextBox></td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td bgcolor="#EBE7E7" style="width: 151px; height: 30px;" valign="top">
                                Notification EMail:</td>
                            <td colspan="1" style="height: 30px">
                                <asp:TextBox ID="txtDBAContactEmail" runat="server" Width="267px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtDBAContactEmail"
                                    Display="Dynamic" ErrorMessage="RegularExpressionValidator" Font-Bold="True"
                                    Font-Size="X-Small" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">Invalid</asp:RegularExpressionValidator>
                                <asp:CheckBox ID="chkboxDBANotificationFlag" runat="server" Text="Receive Notifications" /></td>
                            <td style="height: 30px">
                                <asp:LinkButton ID="btnTestNotificationEMail" runat="server" 
                                    onclick="btnTestNotificationEMail_Click">Test</asp:LinkButton></td>
                        </tr>
                        <tr>
                            <td bgcolor="#EBE7E7" style="width: 151px" valign="top">
                                Alert EMail:</td>
                            <td colspan="1">
                                <asp:TextBox ID="txtDBAOnCallContactEmail" runat="server" Width="267px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtDBAOnCallContactEmail"
                                    Display="Dynamic" ErrorMessage="RegularExpressionValidator" Font-Bold="True"
                                    Font-Size="X-Small" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">Invalid</asp:RegularExpressionValidator>
                                <asp:CheckBox ID="chkboxDBAOnCallFlag" runat="server" Text="Receive Alerts (On-Call DBA)" /></td>
                            <td>
                                <asp:LinkButton ID="btnTestAlertEM" runat="server" 
                                    onclick="btnTestAlertEM_Click">Test</asp:LinkButton></td>
                        </tr>
                        </table>
                    <br />
                    Notifications are general in nature and are usually sent to an office email address.&nbsp;
                    Alerts on the other hand are critical in nature and are usually sent to a
                    mobile phone or pager.&nbsp; Alert messages are sent to the Alert EMail address and also
                    to the Notification EMail addres so it is not necessary to use the same contact
                    email for notification messages and alert messages.&nbsp;
                    <br />
                    <br />
                    <strong>Recommendation:</strong>&nbsp; Set your notification EMail to your office
                        email address and your Alert EMail to your mobile phone, pager or text messaging
                        address.<em><br />
                        <br />
                    </em>
                        <strong>On-Call DBA:</strong><em> Use the Receive Alerts checkbox to designate the On-Call
                        DBA.</em><br />
                </td>
            </tr>
    </table>
</asp:Content>

